/**
 * @(#)Converter.java				Oct 4, 2009 9:15:04 PM
 */
package com.radeonsys.litmus.data.converters;

/**
 * Represents a component which converts a given value from a source to a 
 * destination type.
 * 
 * @param	<S>		the type-parameter representing the source type
 * @param	<D>		the type-parameter representing the destination type
 * 
 * @author Ranganath Kini (ranganathkini at gmail dot com)
 * @version 1.0
 */
public interface Converter<S, D> {
	
	/**
	 * Returns the specified value by converting it to the destination type 
	 * 
	 * @param 	value		the value to be converted
	 * 
	 * @return	the specified value by converting it to the destination type
	 */
	D convert(S value);
	
}
